package com.jy.api.dao;

import com.jy.api.domain.OpenNotice;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by xiaohua on 2019/4/15.
 */
public interface OpenNoticeDao extends CrudRepository<OpenNotice,Integer>{


    OpenNotice findByOpenIdAndStoreId(String openId,String storeId);

    List<OpenNotice> findByStoreIdOrderByEnabledDesc(String storeId);

    List<OpenNotice> findByStoreIdAndEnabled(String storeId,boolean enabled);

}
